﻿#!/bin/bash

docker run -d -e mem=8192m --name mc-mssql --privileged \
 -p 60089:3389 -p 60067:4567 -p 60033:1433 \
 -p 60000:30000 -p 60001:30001 -p 60010:30010 \
 -p 60043:443 \
 -p 60080:8080 -v /hana/kvm/win2012.img:/opt/primary.img \
 kvm \
 qemu-system-x86_64 -hda /opt/primary.img -enable-kvm -cpu host \
 -m 8192 -nographic -device rtl8139,netdev=net0,mac=DE:AD:BE:EF:51:52 -netdev user,id=net0,\
hostfwd=tcp::3389-:3389,\
hostfwd=tcp::4567-:4567,\
hostfwd=tcp::1433-:1433,\
hostfwd=tcp::30000-:30002,\
hostfwd=tcp::30001-:30003,\
hostfwd=tcp::30010-:30010,\
hostfwd=tcp::8080-:8080,\
hostfwd=tcp::443-:443,\
hostfwd=tcp::80-:80